package main

import (
	beego "github.com/beego/beego/v2/server/web"
	"order/middleware"
	"order/models/mysql"
	_ "order/routers"
)

func main() {
	mysql.InitMysql()
	beego.InsertFilter("/api/*", beego.BeforeRouter, middleware.OrderAuth)
	beego.Run()
}
